package com.dy.nygl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dy.nygl.mapper.MachineAlertsMapper;
import com.dy.nygl.pojo.MachineAlerts;
import com.dy.nygl.service.MachineAlertsService;

@Service("machineAlertsService")
public class MachineAlertsServiceImpl implements MachineAlertsService{
	@Resource(name="machineAlertsDao")
	private MachineAlertsMapper machineAlertsDao;
	
	public int addMachineAlerts(MachineAlerts record){
		return machineAlertsDao.insert(record);
	}
	
	public List<MachineAlerts> selectMachineAlerts(){
		return machineAlertsDao.selectAll();
	}

	public int deleteMachineAlertsOne(int id){
		return machineAlertsDao.deleteByPrimaryKey(id);
	}
	
}
